<template>
  <div id="container">
    <div class="top-left">
      <p class="title">数据拥堵指数</p>
      <div class="tranfrom"></div>
      <h2>{{ newindex }}</h2>
      <p>当前实施拥堵指数</p>
      <p>较上周同期上升4.5%</p>
      <div class="hr"></div>
      <p class="old">
        近30日最堵的一天：<span>{{ data }}</span> 高峰拥堵指数
        <span>{{ oldindex }}</span>
      </p>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      data: "2020-09-09 周三",
      newindex: 1.38,
      oldindex: 1.49,
    };
  },
};
</script>

<style lang="less" scoped>
#container {
  width: 32.5%;
  margin-right: 10px;
  .top-left {
    height: 280px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0px;
    .tranfrom {
      width: 85%;
      height: 30px;
      background-color: #ddd;
    }
    .hr {
      border: 1px solid #ddd;
      width: 85%;
    }
    .old {
      font-size: 13px;
      color: #999;
    }
  }
}
</style>